package com.zj.services;

import com.zj.mapper.TeacherMapper;
import com.zj.pojo.Apple;
import com.zj.pojo.Teachure;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component("teacherService")
public class TeacherService implements BaseService<Teachure>{
    @Autowired
    private TeacherMapper mapper;
    @Override
    public int insertApples(Teachure apple) {
        return 0;
    }

    @Override
    public Teachure getAppleById(int id) {
        Teachure teachure = mapper.selectByPrimaryKey(id);
        return teachure;
    }

    @Override
    public List<Teachure> updateAppleById(int id, Teachure apple) {
        return null;
    }

    @Override
    public List<Teachure> getApppool() {
        return mapper.selectByExample(null);
    }

    @Override
    public List<Teachure> deleteApple(int id) {
        return null;
    }
}
